sensible-lomua
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Mon, 27 Aug 2012 16:47:58 +0000 (16:47 +0000)
committerRene Engelhard <rene@debian.org>
Mon, 27 Aug 2012 16:47:58 +0000 (16:47 +0000)
===================================================================

Gbp-Pq: Name sensible-lomua.diff

officecfg/registry/data/org/openoffice/Office/Common.xcu
shell/source/unix/misc/senddoc.sh

index ad1b88fe5c17b009bced9088c83391df3adeb1df..3dfa3142d87240f6c79a1a87f3df946f66a96a5b 100644 (file)
   </node>
   <node oor:name="ExternalMailer" install:module="unixdesktop">
     <prop oor:name="Program">
-      <value oor:external=
-          "com.sun.star.configuration.backend.DesktopBackend ExternalMailer"/>
+      <value>sensible-lomua</value>
     </prop>
   </node>
   <node oor:name="Font">
index a18562b0ae10eacf6cb7ad13b283195f8757cb2d..64d83b0e43c0f57d989f7e4934b7b74ce26fd402 100755 (executable)
@@ -59,6 +59,25 @@ if [ "$1" = "--mailclient" ]; then
     shift
 fi
 
+case `basename "$MAILER"` in
+    sensible-lomua)
+        if [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution ]; then
+            MAILER=/usr/bin/evolution
+        elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then
+            MAILER=/usr/bin/kmail
+        elif [ -x /usr/bin/evolution ]; then
+            # default
+            MAILER=/usr/bin/evolution
+        elif [ -x /usr/bin/icedove ]; then
+            # fallback
+            MAILER=/usr/bin/icedove
+        elif [ -x /usr/bin/thunderbird ]; then
+            # fallback
+            MAILER=/usr/bin/thunderbird
+        fi
+        ;;
+esac
+
 # autodetect mail client from executable name
 case `basename "$MAILER" | sed 's/-.*$//'` in